module.exports = app => {
    const { router, controller, jwt } = app

    router.get('/admin/index', controller.admin.main.index)
    router.post('/admin/checkLogin', controller.admin.main.checkLogin);
    router.get('/admin/getTypeInfo', jwt, controller.admin.main.getTypeInfo);
    router.post('/admin/addArticle', jwt, controller.admin.main.addArticle);
    router.post('/admin/updateArticle', jwt, controller.admin.main.updateArticle);
    router.get('/admin/getArticleList', jwt, controller.admin.main.getArticleList);
    router.get('/admin/delArticle/:id', jwt, controller.admin.main.delArticle);
    router.get('/admin/getArticleById/:id', jwt, controller.admin.main.getArticleById);

}